Optimal. Leaf size=69 \[ -\frac{b e n \text{PolyLog}\left (2,-\frac{d x}{e}\right )}{d^2}-\frac{e \log \left (\frac{d x}{e}+1\right ) \left (a+b \log \left (c x^n\right )\right )}{d^2}+\frac{a x}{d}+\frac{b x \log \left (c x^n\right )}{d}-\frac{b n x}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0780385, antiderivative size = 69, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 6, integrand size = 20, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.3, Rules used = {193, 43, 2330, 2295, 2317, 2391} \[ -\frac{b e n \text{PolyLog}\left (2,-\frac{d x}{e}\right )}{d^2}-\frac{e \log \left (\frac{d x}{e}+1\right ) \left (a+b \log \left (c x^n\right )\right )}{d^2}+\frac{a x}{d}+\frac{b x \log \left (c x^n\right )}{d}-\frac{b n x}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 193
Rule 43
Rule 2330
Rule 2295
Rule 2317
Rule 2391
Rubi steps
\begin{align*} \int \frac{a+b \log \left (c x^n\right )}{d+\frac{e}{x}} \, dx &=\int \left (\frac{a+b \log \left (c x^n\right )}{d}-\frac{e \left (a+b \log \left (c x^n\right )\right )}{d (e+d x)}\right ) \, dx\\ &=\frac{\int \left (a+b \log \left (c x^n\right )\right ) \, dx}{d}-\frac{e \int \frac{a+b \log \left (c x^n\right )}{e+d x} \, dx}{d}\\ &=\frac{a x}{d}-\frac{e \left (a+b \log \left (c x^n\right )\right ) \log \left (1+\frac{d x}{e}\right )}{d^2}+\frac{b \int \log \left (c x^n\right ) \, dx}{d}+\frac{(b e n) \int \frac{\log \left (1+\frac{d x}{e}\right )}{x} \, dx}{d^2}\\ &=\frac{a x}{d}-\frac{b n x}{d}+\frac{b x \log \left (c x^n\right )}{d}-\frac{e \left (a+b \log \left (c x^n\right )\right ) \log \left (1+\frac{d x}{e}\right )}{d^2}-\frac{b e n \text{Li}_2\left (-\frac{d x}{e}\right )}{d^2}\\ \end{align*}
Mathematica [A] time = 0.0324424, size = 66, normalized size = 0.96 \[ \frac{-b e n \text{PolyLog}\left (2,-\frac{d x}{e}\right )-a e \log \left (\frac{d x}{e}+1\right )+a d x+b \log \left (c x^n\right ) \left (d x-e \log \left (\frac{d x}{e}+1\right )\right )-b d n x}{d^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.193, size = 343, normalized size = 5. \begin{align*}{\frac{b\ln \left ({x}^{n} \right ) x}{d}}-{\frac{b\ln \left ({x}^{n} \right ) e\ln \left ( dx+e \right ) }{{d}^{2}}}-{\frac{bnx}{d}}-{\frac{enb}{{d}^{2}}}+{\frac{enb\ln \left ( dx+e \right ) }{{d}^{2}}\ln \left ( -{\frac{dx}{e}} \right ) }+{\frac{enb}{{d}^{2}}{\it dilog} \left ( -{\frac{dx}{e}} \right ) }+{\frac{{\frac{i}{2}}b\pi \, \left ({\it csgn} \left ( ic{x}^{n} \right ) \right ) ^{3}e\ln \left ( dx+e \right ) }{{d}^{2}}}+{\frac{{\frac{i}{2}}b\pi \, \left ({\it csgn} \left ( ic{x}^{n} \right ) \right ) ^{2}{\it csgn} \left ( ic \right ) x}{d}}-{\frac{{\frac{i}{2}}b\pi \,{\it csgn} \left ( i{x}^{n} \right ) \left ({\it csgn} \left ( ic{x}^{n} \right ) \right ) ^{2}e\ln \left ( dx+e \right ) }{{d}^{2}}}+{\frac{{\frac{i}{2}}b\pi \,{\it csgn} \left ( i{x}^{n} \right ) \left ({\it csgn} \left ( ic{x}^{n} \right ) \right ) ^{2}x}{d}}-{\frac{{\frac{i}{2}}b\pi \, \left ({\it csgn} \left ( ic{x}^{n} \right ) \right ) ^{3}x}{d}}-{\frac{{\frac{i}{2}}b\pi \,{\it csgn} \left ( i{x}^{n} \right ){\it csgn} \left ( ic{x}^{n} \right ){\it csgn} \left ( ic \right ) x}{d}}+{\frac{{\frac{i}{2}}b\pi \,{\it csgn} \left ( i{x}^{n} \right ){\it csgn} \left ( ic{x}^{n} \right ){\it csgn} \left ( ic \right ) e\ln \left ( dx+e \right ) }{{d}^{2}}}-{\frac{{\frac{i}{2}}b\pi \, \left ({\it csgn} \left ( ic{x}^{n} \right ) \right ) ^{2}{\it csgn} \left ( ic \right ) e\ln \left ( dx+e \right ) }{{d}^{2}}}+{\frac{\ln \left ( c \right ) bx}{d}}-{\frac{b\ln \left ( c \right ) e\ln \left ( dx+e \right ) }{{d}^{2}}}+{\frac{ax}{d}}-{\frac{ae\ln \left ( dx+e \right ) }{{d}^{2}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} a{\left (\frac{x}{d} - \frac{e \log \left (d x + e\right )}{d^{2}}\right )} + b \int \frac{x \log \left (c\right ) + x \log \left (x^{n}\right )}{d x + e}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{b x \log \left (c x^{n}\right ) + a x}{d x + e}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 59.7241, size = 144, normalized size = 2.09 \begin{align*} - \frac{a e \left (\begin{cases} \frac{x}{e} & \text{for}\: d = 0 \\\frac{\log{\left (d x + e \right )}}{d} & \text{otherwise} \end{cases}\right )}{d} + \frac{a x}{d} + \frac{b e n \left (\begin{cases} \frac{x}{e} & \text{for}\: d = 0 \\\frac{\begin{cases} \log{\left (e \right )} \log{\left (x \right )} - \operatorname{Li}_{2}\left (\frac{d x e^{i \pi }}{e}\right ) & \text{for}\: \left |{x}\right | < 1 \\- \log{\left (e \right )} \log{\left (\frac{1}{x} \right )} - \operatorname{Li}_{2}\left (\frac{d x e^{i \pi }}{e}\right ) & \text{for}\: \frac{1}{\left |{x}\right |} < 1 \\-{G_{2, 2}^{2, 0}\left (\begin{matrix} & 1, 1 \\0, 0 & \end{matrix} \middle |{x} \right )} \log{\left (e \right )} +{G_{2, 2}^{0, 2}\left (\begin{matrix} 1, 1 & \\ & 0, 0 \end{matrix} \middle |{x} \right )} \log{\left (e \right )} - \operatorname{Li}_{2}\left (\frac{d x e^{i \pi }}{e}\right ) & \text{otherwise} \end{cases}}{d} & \text{otherwise} \end{cases}\right )}{d} - \frac{b e \left (\begin{cases} \frac{x}{e} & \text{for}\: d = 0 \\\frac{\log{\left (d x + e \right )}}{d} & \text{otherwise} \end{cases}\right ) \log{\left (c x^{n} \right )}}{d} - \frac{b n x}{d} + \frac{b x \log{\left (c x^{n} \right )}}{d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{b \log \left (c x^{n}\right ) + a}{d + \frac{e}{x}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]